import request from '@/utils/request'
// 工单管理
// 工单任务
// 工单列表数据
export function orderList(data) {
  return request({
    url: '/admin/systemTask/list',
    method: 'post',
    data
  })
}
// 班组列表
export function groupList(data) {
  return request({
    url: '/admin/systemGroup/list',
    method: 'post',
    data
  })
}
// 所有运维人员
export function workerAllList(data) {
  return request({
    url: '/admin/devops/list',
    method: 'post',
    data
  })
}
// 司机
export function workerdrevers(data) {
  return request({
    url: '/admin/devops/allList',
    method: 'post',
    data
  })
}
// 派单
export function sendCards(data) {
  return request({
    url: '/admin/systemTask/distribution',
    method: 'post',
    data
  })
}

// 进度
export function progre(data) {
  return request({
    url: '/admin/systemTaskProgress/workProgress',
    method: 'post',
    data
  })
}
// 用车是否超时
export function useCars(data) {
  return request({
    url: '/admin/systemRepair/detail',
    method: 'post',
    data
  })
}
// 派单记录
export function sendList(data) {
  return request({
    url: '/admin/systemTaskProgress/paiList',
    method: 'post',
    data
  })
}
// 工单任务详情，获取用车是否超时     
export function carsOver(data) {
  return request({
    url: '/admin/systemTaskProgress/workProgress',
    method: 'post',
    data
  })
}
// 报修任务详情
export function taskDetail(data) {
  return request({
    url: '/admin/systemRepair/detail',
    method: 'post',
    data
  })
}
// 报修查看附件
export function seeAccessory(data) {
  return request({
    url: '/admin/systemRepairFile/list',
    method: 'post',
    data
  })
}
// 报修删除附件
export function deleteAccessory(data) {
  return request({
    url: '/admin/systemRepairFile/delete',
    method: 'post',
    data
  })
}
// 抢修任务详情
export function taskDetail1(data) {
  return request({
    url: '/admin/systemRushRepair/detail',
    method: 'post',
    data
  })
}
// 抢修附件列表
export function seeAccessory1(data) {
  return request({
    url: '/admin/systemRushRepairFile/list',
    method: 'post',
    data
  })
}
// 抢修删除附件
export function deleteAccessory1(data) {
  return request({
    url: '/admin/systemRushRepairFile/delete',
    method: 'post',
    data
  })
}
// 巡检与试验详情
export function taskDetail2(data) {
  return request({
    url: '/admin/spectionPlan/detail',
    method: 'post',
    data
  })
}
// 巡检与试验附件列表
export function seeAccessory2(data) {
  return request({
    url: '/admin/systemPlanFile/list',
    method: 'post',
    data
  })
}
// 巡检与试验删除附件
export function deleteAccessory2(data) {
  return request({
    url: '/admin/systemPlanFile/delete',
    method: 'post',
    data
  })
}
